home *** CD-ROM | disk | FTP | other *** search
- Path: fsgm01.fnal.gov!not-for-mail
- From: b91926@fsgm01.fnal.gov (David Sachs)
- Newsgroups: comp.lang.c++
- Subject: Re: Q: Unresolved externnal "_main"?
- Date: 7 Feb 1996 17:02:48 -0600
- Organization: FERMILAB, Batavia, IL
- Message-ID: <4fbb2o$mfd@fsgm01.fnal.gov>
- References: <3118FFAF.B80@ni.net>
- Reply-To: sachs@fnal.fnal.gov
- NNTP-Posting-Host: fsgm01.fnal.gov
- X-Newsreader: NN version 6.5.0 #9 (NOV)
-
- Jeff Nikodym <jeffnik@ni.net> writes:
-
- >As you might be able to tell, Im just learning C++.
- >Im using MSVC2.0, and whenever I try to compile any program that is not
- >made with the "Application Wizard", during the link phase I get an
- >error: "unresolved external ... '_main'". Might someone have an insight
- >as to what Im doing wrong?
-
- All C and C++ programs must include a function named "main". In
- programs written for Windows, function main is normally loaded
- from a library, rather that as part of the user supplied code.
-
- Your C++ compiler is improperly configured, so that the proper
- libraries are not searched.
- --
- * IRS, IRS, lord of the federal tax, checking all income and every deduction, *
- * mailing out form 10 40, penalizing noncompliers, regulating, and auditing. *
- David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
- Voice: 1 708 840 3942 Deparment Fax: 1 708 840 3785
-